package lgs.hm.util;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;

public class Man {
	@Value("#{dsz.name}")
	private String name;
	@Value("#{${man.age}+40}")  // 表达式
	private Integer age;
	
//	@Value("#{${email} matches'[\\d\\w[\\d\\w_-]]'}")
//	private Boolean hasEmail;
	
//	@Autowired
//	@Qualifier("dsz")
	@Value("#{dsz}")
	private Map<String, Object> map;
	
	public Map<String, Object> getMap() {
		return map;
	}

	public void setMap(Map<String, Object> map) {
		this.map = map;
	}

	private List<String> lists;
	
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}


	public List<String> getLists() {
		return lists;
	}

	public void setLists(List<String> lists) {
		this.lists = lists;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	@Override
	public String toString() {
		return "Man [name=" + name + ", age=" + age + ", map=" + map + ", lists=" + lists + "]";
	}
	
	

}
